package com.pan.hisystem.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author qingyang
 * @since 2022-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("h_prescription_drugs")
@ApiModel(value="PrescriptionDrugs对象", description="")
public class PrescriptionDrugs implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "处方id")
    @TableField("pre_id")
    private Integer preId;

    @ApiModelProperty(value = "药品id")
    @TableField("drug_id")
    private Integer drugId;

    @ApiModelProperty(value = "药品数量")
    private Integer num;

    @ApiModelProperty(value = "是否取药")
    private Boolean status;

    @ApiModelProperty(value = "操作员id")
    private Integer uid;

    @ApiModelProperty(value = "出库库房")
    private String outWarehouse;

    @ApiModelProperty(value = "出库日期")
    private LocalDateTime outDate;

    @ApiModelProperty(value = "药品")
    @TableField(exist = false)
    private Drug drug;



}
